package cn.liontalk.web;

import cn.liontalk.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description
 * @date 2019-03-31 19:58
 **/
@RestController
@RequestMapping(value = "/feign")
public class FeignController {

    @Autowired
    private FeignService feignService;


    @GetMapping(value = "/demo")
    public String feignTest(@RequestParam("name") String name){
        return feignService.sayHiFromFeignClient(name);
    }


}
